Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Types and Constants


Appearance-Compliant Brush Type Constants

NEW WITH THE APPEARANCE MANAGER

The Appearance Manager provides the underlying support for RGB color data and overrides System 7 color tables such as 'cctb' and 'mctb' with a more abstract mechanism that allows colors and patterns to be coordinated with the current theme. You can pass constants of type ThemeBrush in the inBrush parameter of SetThemeBackground, SetThemePen, and SetThemeWindowBackground to specify Appearance-compliant colors or patterns for standard human interface elements.

enum {
   kThemeActiveDialogBackgroundBrush           = 1,
   kThemeInactiveDialogBackgroundBrush         = 2,
   kThemeActiveAlertBackgroundBrush            = 3,
   kThemeInactiveAlertBackgroundBrush          = 4,
   kThemeActiveModelessDialogBackgroundBrush   = 5,
   kThemeInactiveModelessDialogBackgroundBrush = 6,
   kThemeActiveUtilityWindowBackgroundBrush    = 7,
   kThemeInactiveUtilityWindowBackgroundBrush  = 8,
   kThemeListViewSortColumnBackgroundBrush     = 9,
   kThemeListViewBackgroundBrush               = 10,  
   kThemeIconLabelBackgroundBrush              = 11,    
   kThemeListViewSeparatorBrush                = 12,  
   kThemeChasingArrowsBrush                    = 13,  
   kThemeDragHiliteBrush                       = 14,
   kThemeDocumentWindowBackgroundBrush         = 15,
   kThemeFinderWindowBackgroundBrush           = 16
};
typedef SInt16 ThemeBrush;

Constant descriptions

kThemeActiveDialogBackgroundBrush
An active dialog box's background color or pattern.
kThemeInactiveDialogBackgroundBrush
An inactive dialog box's background color or pattern.
kThemeActiveAlertBackgroundBrush
An active alert box's background color or pattern.
kThemeInactiveAlertBackgroundBrush
An inactive alert box's background color or pattern.
kThemeActiveModelessDialogBackgroundBrush
An active modeless dialog box's background color or pattern.
kThemeInactiveModelessDialogBackgroundBrush
An inactive modeless dialog box's background color or pattern.
kThemeActiveUtilityWindowBackgroundBrush
An active utility window's background color or pattern.
kThemeInactiveUtilityWindowBackgroundBrush
An inactive utility window's background color or pattern.
kThemeListViewSortColumnBackgroundBrush
The background color or pattern of the column upon which a list view is sorted.
kThemeListViewBackgroundBrush
The background color or pattern of a list view column that is not being sorted upon.
kThemeIconLabelBackgroundBrush
An icon label's color or pattern.
kThemeListViewSeparatorBrush
A list view separator's color or pattern.
kThemeChasingArrowsBrush
Asynchronous arrows' color or pattern.
kThemeDragHiliteBrush
The background color or pattern of an element responding to a drag and drop, indicating that the element is a valid recipient.
kThemeDocumentWindowBackgroundBrush
A document window's background color or pattern.
kThemeFinderWindowBackgroundBrush
A Finder window's background color or pattern. Generally, you should not use this constant unless you are trying to create a window that matches the Finder window.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998